/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.football.lottery.obj;

/**
 *
 * @author I am god
 */
public class RecommendedItem
{
  private int periodNo;
  private String cameFrom;
  private String author;
  private String data;
  private double amount;
  
  public String[] getDataBuffer()
  {
    if (this.data != null && this.data.trim().length() > 0 )
    {
      if (data.contains(","))
      {
        return data.trim().split(",");
      }
      else if (data.contains("/"))
      {
        return data.trim().split("/");
      }
    }
    return null;
  }

  public double getAmount()
  {
    return amount;
  }

  public void setAmount(double amount)
  {
    this.amount = amount;
  }

  public String getAuthor()
  {
    return author;
  }

  public void setAuthor(String author)
  {
    this.author = author;
  }

  public String getData()
  {
    return data;
  }

  public void setData(String data)
  {
    this.data = data;
  }

  public String getCameFrom()
  {
    return cameFrom;
  }

  public void setCameFrom(String from)
  {
    this.cameFrom = from;
  }

  public int getPeriodNo()
  {
    return periodNo;
  }

  public void setPeriodNo(int periodNo)
  {
    this.periodNo = periodNo;
  }

}
